import request from '@/utils/request'
// 获取列表
export function getInfo(data) {
  return request({
    url: '/mes/quality/page',
    method: 'get',
    params: data

  })
}
export function add(data) {
  return request({
    url: '/mes/quality/add',
    method: 'put',
    data
  })
}
export function del(id) {
  return request({
    url: `/mes/quality/delete/${id}`,
    method: 'delete'
  })
}
export function delitems(id) {
  return request({
    url: `/mes/quality/contentDelete/${id}`,
    method: 'delete'
  })
}
export function addcontent(data) {
  return request({
    url: '/mes/quality/contentAdd',
    method: 'put',
    data
  })
}
export function delcontent(data) {
  return request({
    url: '/mes/quality/contentAdd',
    method: 'put',
    data
  })
}
export function addquality(data) {
  return request({
    url: `/mes/quality/contentAdd`,
    method: 'put',
    data: data
  })
}
export function getaddquality(data) {
  return request({
    url: `/mes/quality/contentPage`,
    method: 'get',
    params: data
  })
}
export function reportPage(data) {
  return request({
    url: `/mes/quality/reportPage`,
    method: 'get',
    params: data
  })
}
export function addCheck(data) {
  return request({
    url: `/mes/quality/addCheck`,
    method: 'post',
    params: data
  })
}
export function reportContentPage(data) {
  return request({
    url: `/mes/quality/reportContentPage`,
    method: 'get',
    params: data
  })
}
export function checkContent(data) {
  return request({
    url: `/mes/quality/checkContent`,
    method: 'get',
    params: data
  })
}
export function getProductLineCode(data) {
  return request({
    url: `/mes/quality/getProductLineCode`,
    method: 'get',
    params: data
  })
}

export function impMesQualityData(data) {
  return request({
    url: `/mes/quality/impMesQualityData`,
    method: 'post',
    data
  })
}
